package com.ibeeking.found.open.api.common.param;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @ClassName JoinCouponParam
 * @Description
 * @Author ibeeking
 * @Date 2021-01-18 18:29
 **/
@Data
public class JoinCouponParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotEmpty(message = "优惠券ID不能为空")
    private List<Long> couponIds;

    /**
     * 会员ID
     */
    @NotNull(message = "会员ID不能为空")
    private Long memberId;

    @NotNull(message = "商铺ID不能为空")
    private Long shopId;

    /**
     * 商品参数
     */
    private List<JoinCouponGoodsParam> goodParams;
}
